package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 朱梦晨
 * @Description: 导出类型
 * @date 2024-07-24
 */
@AllArgsConstructor
@Getter
public enum ExportTypeEnum {


    TEMP_USER_COLLECTIBLES_OWNED(1, "用户藏品"),
    TEMP_FREE_MARKET_COLLECTION_HOLDINGS(2, "自由市场持仓统计"),
    TEMP_CITY_SERVER_CENTRE(3, "城市服务中心"),
    TEMP_COMMUNITY_NETWORK(4, "社区网点"),
    TEMP_BRAND_INCUBATION(5, "品牌孵化订单明细"),
    TEMP_FREE_MARKET(6, "自由市场订单明细"),
    TEMP_AIRDROP(7, "空投明细记录"),
    TEMP_ORDER(8, "首发订单"),
    TEMP_ORDER_DETAIL(9, "首发订单明细"),
    TEMP_ROUGH_STONE_ORDER(10, "原石订单"),
    TEMP_BRAND_INCUBATION_COLLECTION_HOLDINGS(11, "品牌孵化持仓统计"),
    TEMP_DAO_HOLD_COLLECTION(12, "网体持仓");


    @EnumValue
    private int code;

    private String name;

    public static ExportTypeEnum getName(Integer code) {
        ExportTypeEnum[] values = values();
        for (ExportTypeEnum v : values) {
            if (v.getCode() == code) {
                return v;
            }
        }
        return null;
    }

}
